Boundary scan with latching output buffer and weak input buffer

ABSTRACT

An electronic integrated circuit includes a signal path connected between the functional logic thereof and an external output terminal thereof which signal path includes a memory circuit. The memory circuit is coupled to the output terminal and is selectively operable to detect and resolve voltage contention at the output terminal, and is also selectively operable to isolate itself from voltages at the output terminal.

This application claims the benefit of prior application No. 08/749,586,filed Nov. 15, 1996, which claimed the benefit of prior application No.08/430,651, filed Apr. 28, 1995, which was co-pending with applicationNo. 08/342,948, filed Nov. 21, 1994.

TECHNICAL FIELD OF THE INVENTION

The invention relates generally to integrated circuits and, moreparticularly, to improvements in memory circuitry associated with input,output and bi-directional terminals of integrated circuits.

BACKGROUND OF THE INVENTION

Today boundary scan design in integrated circuits (ICs) is based on anIEEE standard referred to as 1149.1. In 1149.1, flip flops and/orlatches, referred to from this point forward as memories, form theboundary scan cells at the IC input, output and bi-directional pins.These boundary scan cell memories are required to be dedicated for testoperation. This means that the memories cannot be used functionally bythe IC when testing is not being performed. In some ICs, it istechnically advantageous to be able to use the memories functionallywhen the IC is in normal mode, then reuse the memories for test purposeswhen the IC is placed in a boundary scan test mode. Reuse of memoriesfor function and test purposes is a common practice in internal scandesign of ICs. However, 1149.1 boundary scan differs from internal scanin that it requires scan access of the IC's boundary while the IC is innormal mode. Therefore the memories of the boundary scan cells must beavailable for scanning at all times, forcing them to be dedicated testcircuits.

The reason for the aforementioned full time scan access requirement ofIEEE STD 1149.1 is two-fold. First, allowing the boundary scan path tobe accessed during normal IC operation provides a way to take an on-linesample of the IC's inputs and outputs during normal operation. Second,allowing the boundary scan path to be accessed during normal ICoperation provides a way to preload boundary scan memories with testdata prior to entering the boundary scan test mode. Of these tworequirements, preloading is the most important because it allowsinitializing the boundary scan cells at IC output pins with safe testdata prior to switching the IC into boundary scan test mode.

Sampling has not proven to be a valuable test feature, due to problemsof synchronizing the sampling with normal IC operation. Due to theineffectiveness of sampling, it may become an optional 1149.1 testfeature instead of a required test feature. If sampling were madeoptional, it would be possible to share memories between boundary scancells and IC functional circuitry. However, if shared memories are usedin the absence of the sampling requirement, establishing safe test datain output boundary scan cells to meet the preload requirement would bedifficult since sharing of the boundary scan cell memories inhibits scanaccess during normal IC operation.

Another requirement for 1149.1 boundary scan cells is to control outputpins to a predetermined logic condition during scan operations. Toachieve this, prior art output boundary scan cells utilized twomemories. The first memory is used for capturing and shifting datathrough the cell, and the second memory is used for holding stable testdata at the output pin while the first memory captures and shifts. Ifthe sampling operation, described above, is made optional, the firstmemory can be shared with functional logic. However, the second memorywill be required and dedicated for test to maintain stable data from theoutput pin while the first shared memory captures and shifts data.

A new boundary scan standard proposal currently in development, referredto as IEEE P1149.2, is based on allowing first memories (capture/shiftmemory) of boundary scan cells to be either shared for functional andtest purposes or dedicated for test. Also, P1149.2 makes the use ofsecond memories (output hold memory) optional. P1149.2 thus permits anoutput boundary cell which contains only a shared capture/shift memory.Use of such an output boundary scan cell minimizes test logic, but theIC output pin controlled by such a cell would ripple during capture andshift operations of the shared capture/shift memory. The ripple effecton output pins during capture and shift operations can cause problemsduring boundary test, such as corruption of the test by rippling testdata at the inputs of ICs which do not themselves implement boundaryscan, causing them to enter into unknown and potentially dangerousstates. For example, if output ripple were to occur from the outputs ofa boundary scan IC to the inputs of an non-boundary scan IC, thenon-boundary scan IC could respond to the rippling inputs (on say itsclock, reset and/or enable pins) to enter into an undesired state. Theundesired state could damage the IC or other ICs it is connected to.Furthermore, rippling outputs prevent full control of non-boundary scanICs during test, and therefore limit what can and cannot be tested.

Since P1149.2 allows sharing of the capture/shift memory, scanning ofcapture/shift memories to preload test data to optional output holdmemories prior to entering boundary scan test mode is not a requiredfeature. In P1149.2, the IC can be simply switched from functional modeinto test mode, and P1149.2 assumes that the functional data stored inthe shared capture/shift memories of IC output boundary cells at thetime of the switch will be safe test data to initially output from theIC. This means that an IC output boundary cell which uses only a sharedcapture/shift memory will initially output, in test mode, the logiccondition previously being output in functional mode. Since thefunctional outputs from an IC will be unknown at the time of the switchto test mode, unknown test data will be output.

If, for example, a short to ground exists on an output pin when theswitch to test mode occurs, and a logic one is stored in the sharedcapture/shift memory when the switch occurs, the output buffer willattempt to drive a logic one over the ground short. If multiple outputsare shorted to themselves, to ground or to the supply voltage, andshared capture/shift memories attempt to drive out competing voltagelevels when switched into test mode, the IC outputs and/or IC itselfcould be damaged by excessive current flow. A similar problem wouldexist with P1149.2 output boundary cells that use the optional outputhold memory in combination with a shared capture/shift memory, since theoutput hold memory cannot be preloaded with safe test data. So whileP1149.2 may provide a fairly safe way to enter test mode without havingto scan (preload) the output cells with test data, the test mode entrymethod is not safe when IC output pins are subjected to being shorted toground, supply voltage, or to other pins. Thus, neither 1149.1 orP1149.2 provides a solution to resolving voltage contention problemsthat can occur at IC outputs when the IC is switched from functional totest mode.

FIGS. 1 and 2 illustrate two exemplary IC functional architectures thatwill be used to facilitate description of the prior art and the presentinvention. The IC example in FIG. 1 has an input and a 2-state outputand the IC example in FIG. 2 has an input and a 3-state output. Duringfunctional operation of the ICs, input data passes through an inputbuffer (IB) 11 and is stored in a functional input memory (FIM) 13, forexample, a latch The output of the FIM is input to the IC's functionalcore logic (FCL) 15. The functional core logic outputs data to be storedin a functional output memory (FOM) 17, for example, a latch, and outputfrom the IC via an output buffer (OB) 19 in FIG. 1 or via a 3-stateoutput buffer (3SOB) 21 in FIG. 2. Data is stored in the FIM and FOM(s)by control output 23 from the functional core logic. The only differencebetween the two ICs is that the FCL of FIG. 2 outputs control 25 to aFOM 27 to enable or disable the IC's 3-state output buffer. Use of FIMsand FOMs at IC inputs and outputs is beneficial in high speed ICarchitectures, due to the synchronizing or pipelining effect theyprovide for rapid IC data input and output movement. Also FIMs and FOMscan be positioned physically close to the input and output buffers,respectively, reducing input and output time delays. Because the FIM 13is interposed between the IB 11 and the FCL 15, the IB does not directlydrive the FCL. The FIM does not have the same drive capability as IB, soit is often necessary to provide between FIM and FCL a high-drive buffer(not shown) capable of providing the input drive required by FCL.

FIG. 11 is similar to FIGS. 1-2 and shows an IC which uses functionalinput and output memories (FIMs & FOMs) to store data and controlflowing between the functional core logic (FCL) and input (I), output(O), and input/output (I/O) pins. The FIMs receive data from the inputbuffers and update control (UC) from the FCL to store the data. The FIMsoutput the stored data to the FCL. The FOMs receive data or control fromthe FCL and UC from the FCL to store the data or control. The FOMsoutput stored data or control to the output buffers. A single FOMoutputs data to 2-state output buffers (2SOB) and two FOMs output dataand control to 3-state output buffers (3SOB). While individual input,output, and I/O pins are shown, it should be understood that multipleinput, output, and I/O pins could be used on the IC to form a bussedarrangement of input, output, and I/O pins.

It is important to note the following in FIGS. 1-2 and 11; (1) each FIMand FOM is a complete memory element requiring circuitry for receivingdata, circuitry for storing data in response to UC, and circuitry foroutputting stored data, (2) each FIM and FOM introduces a delay in thedata path due to its required circuitry, (3) each FOM continuouslydrives the output buffer and the output pin with the data stored, evenif the output pin is shorted to an opposing voltage data level, such asground or supply.

FIGS. 3 and 4 illustrate the IC architectures of FIGS. 1 and 2 when testlogic for 1149.1 boundary scan is implemented therein. On IC inputs, aninput boundary cell (IBC) 29 is connected to the output of the inputbuffer (at "A"). On 2-state IC outputs (FIG. 3), an output boundary cell(OBC) 31 is inserted in series with the data path between the FOM 17 andthe 2-state output buffer (at "B" & "C"). On 3-state IC outputs (FIG.4), an OBC 31 is inserted in series with the data path between the FOM17 and 3-state output buffer (3SOB), and another OBC 31 is inserted inseries with the control path between the FOM 27 and 3-state outputbuffer enable input. Examples of the IBC and OBC test logic arerespectively shown in FIGS. 3A and 3B. The IBC and OBC(s) are connectedserially from a serial input pin of the IC to a serial output pin of theIC to allow data to be shifted through the cells. The cells receivecontrol via control bus 33 from a test port (TP) 35 to control theiroperation. It is important to note with respect to FIG. 4 that a singlecontrol path OBC can control a group of data path OBCs that form afunctional 3-state bus, i.e. 1149.1 does not require that each 3-stateoutput pin of a bus have its own control cell.

The IBC 29 of FIG. 3A contains an input multiplexer (Mux1) and acapture/shift memory (Mem1). Mux1 is controlled by the TP to inputeither serial data input (SI) or system data input (A) to Mem1. Mem1loads data in response to TP control. The output of Mem1 is output asserial output (SO) data. The OBC 31 of FIG. 3B contains an inputmultiplexer (Mux1), a capture/shift memory (Mem1), an output hold memory(Mem2), and an output multiplexer (Mux2). Mux1 is controlled by the TPto input either serial data input (SI) or system data input (B) to Mem1.Mem1 loads data in response to TP control. The output of Mem1 is inputto Mem2 and also output as serial output (SO) data. Mem2 loads data fromMem1 in response to TP control. Mux2 is controlled by the TP to outputeither data from Mem2 or system data (B) to the output buffer (C). The1149.1 standard requires that the logic of IBCs and OBCs be dedicatedfor testing and not reused functionally by the IC.

The OBC differs from the IBC because 1149.1 boundary scan requires thatthe IC outputs be able to be controlled to a predetermined output logiccondition, while data is captured into and shifted through the OBC. Thereason for this requirement is to prevent connected IC inputs fromreceiving the data ripple effect that would occur from IC outputs duringthe capture and shift operations. This requirement forces the OBC tohave two memories, a first memory (Mem1) for capturing and shiftingdata, and a second memory (Mem2) for maintaining the IC output pin at adesired logic condition (logic one, zero or tristate) while data iscaptured and shifted by the first memory. It is important to note thatthe OBC's Mux2 introduces a delay in both the data and control pathsbetween the FOMs and 2-state/3-state output buffers, which can adverselyimpact IC performance.

The 1149.1 standard requires two types of test operations for boundaryscan cells, a sample and preload operation (Sample/Preload) and anexternal test operation (Extest). The sample part of Sample/Preloadallows the Mux1 and Mem1 of IBC and OBC to be controlled by the TP tocapture and shift out system data while the IC is in normal operation.The preload part of Sample/Preload allows the TP to shift data into Mem1of OBCs and update the data into Mem2 of OBCs, while the IC is in normaloperation. The ability to preload Mem2 of OBCs before the IC is placedin Extest is important because it allows establishing what test datawill be output from the IC when the IC enters Extest mode, i.e. whenMux2 of OBCs is switched from outputting system data (B) to outputtingdata from Mem2. Without the ability to preload Mem2, potentiallydamaging test data could be output from the IC when it is switched fromnormal to Extest operation.

When the IC is placed in Extest, Mux2 of OBC is controlled by the TP tooutput test data stored in Mem2 to the output buffer. In FIG. 3, thetest data output from OB 19 when Extest is entered is either a logic oneor zero. In FIG. 4, the test data output from 3SOB 21 when Extest isentered is either logic one, logic zero, or tristate. During Extest,OBCs are operated by the TP to shift in and update test data to ICoutputs to tristate the output or drive logic levels onto wiringinterconnects, and IBCs are operated by the TP to capture and shift outtest data arriving at IC inputs from wiring interconnects. In this way,Extest is used to test wiring interconnects between IC inputs andoutputs on, for example, a printed wiring board. The operation of boththese 1149.1 test operations is well known by workers in boundary scantesting.

The usefulness of the sample part of the Sample/Preload operation islimited because it is difficult to synchronize the capture operation ofthe IBC's and OBC's Mem1 with the functional data arriving at anddeparting from the IC's inputs and outputs, respectively. This isbecause the IBC and OBC(s) are controlled by timing from the TP, and theFIM and FOM(s) are controlled by the timing from the functional corelogic. As a result, the sample part of the Sample/Preload operation maybecome an optional boundary scan test feature in 1149.1, whereas now itis a required test feature. If the sample part of Sample/Preload is madeoptional, then the FIM and FOM(s) of the ICs in FIGS. 3 and 4 couldserve as the Mem1 of the IBC and OBC(s), respectively, when the IC isplaced in Extest mode.

FIGS. 5 and 6 illustrate boundary scan designs where the sample featureis omitted, enabling the FIM and FOM(s) to serve as functional memoriesduring normal IC operation and boundary cell capture/shift memories(Mem1) during test operation. This reduces the boundary scan test logicoverhead at input pins by one memory, overhead at 2-state output pins(FIG. 5) by one memory, and overhead at 3-state output pins (FIG. 6) bytwo memories. To use the FIM and FOM as functional and test memories,the control 37 to each must be switchable to allow the FIM and FOM tooperate in response to control 23 from the functional core logic duringnormal operation, and in response to control from TP during testoperation. To achieve this, a control multiplexing (CMX) circuit isshown in FIGS. 5 and 6 to allow switching of control between test andnormal operations. The CMX circuit allows control from the functionalcore logic or control from the TP to be globally distributed to each FIMand FOM. Control to switch the CMX comes from the TP.

In FIGS. 5 and 6, it is seen that, when using shared FIMs, the IBCfunction is implemented with only Mux 1 required as dedicated testcircuitry. In FIGS. 5 and 6, it is seen that, when using shared FOMs,the OBC function is implemented with only Mux1, Mem2 and Mux2 asdedicated test circuitry. The Mem2 and Mux2 (M&M) circuitry 41 is shownin FIG. 5A. It is important to note that Mem2 and Mux2 (M&M) must stillbe inserted between the shared FOM and output buffer (at "B1" and "C").Also it is important to note that the Mux2 delay on the data and controlpaths is maintained in the boundary scan designs of FIGS. 5 and 6, whichadversely impacts IC performance.

Although it is possible to share a functional memory with the Mem2function, to do this would require at least one additional multiplexerand additional wire routing to enable a memory inside the FCL to becoupled to Mux2 and the shared FOM (17 or 27).

A problem with the boundary scan designs of FIGS. 5 and 6 is that thereis no way to preload Mem2 by scanning data into Mem1 as previouslydescribed for the boundary scan designs of FIGS. 3 and 4. This isbecause the shared FOM (Mem1) is used functionally by the IC andtherefore cannot be scanned by the TP to input safe test data to uploadinto Mem2. Thus when the IC is initially placed into Extest, Mux2 isswitched to output unknown test data from Mem2 to the 2-state outputbuffer of FIG. 5 and 3-state output buffer of FIG. 6. This unknown testdata may cause the output buffers to output conditions that might damageother circuits or output buffers when Extest is entered. So while theshared boundary scan design of FIGS. 5 and 6 does reduce the test logicoverhead at IC input and output pins, it is not able to initially enterExtest with safe test conditions being output from the IC. After Extestis entered, and following the first scan operation to the IBC andOBC(s), the Mem2 at output pins is uploaded with safe test data from theshared Mem1 memory. However, the period of time between the initialentry into Extest and the updating of safe test data into Mem2 providesan opportunity for circuitry and/or buffer damage.

The boundary scan cells of FIGS. 5 and 6 are similar to those proposedin the P1149.2 boundary scan standard, in that Mem1 is shared with afunctional memory (FOM). In P1149.2, the M&M circuitry in the data pathof FIGS. 5 and 6 between the shared Mem1 17 and 2-state or 3-stateoutput buffer can be optionally deleted, allowing the output of theshared Mem1 17 to be directly input to the 2-state or 3-state outputbuffer, as shown in FIGS. 5B and 6A. However, P1149.2, like 1149.1,requires that the M&M circuitry be placed in series between the outputof the shared Mem1 27 and the 3-state control input of the 3-stateoutput buffer 3SOB. The requirement to place the M&M circuitry in thecontrol path allows the 3-state output to be controlled to either a3-state or enabled condition while data is captured and shifted throughthe shared Mem1 27 of the control path. However, with the M&M circuitryoptionally deleted from the data paths of 2-state and 3-state outputs,the data from these pins, assuming the 3-state output is enabled (whichit must be to permit updating test data to the output pin duringExtest), will ripple as data is captured and shifted through the sharedMem1s 17 of the data path. As mentioned previously, the rippling of dataoutputs during capture and shift operations can cause damage to ICsand/or limit what can and cannot be tested.

With the growing interest in sharing memories between functional andboundary scan circuits, and with the above-described problems associatedwith shared memories, a need has arisen for improved OBCs for 2-stateand 3-state output buffers. The present invention provides a boundaryscan cell including a shared capture/shift memory, and an output bufferstructure which provides the ability to; (1) establish safe test data atIC outputs when the IC is switched from functional mode to boundary testmode without first having to scan safe test data in, (2) quickly resolvevoltage contention problems at IC output pins due to shorts betweenpins, ground or supply voltage, and (3) maintain stable test data atoutput pins while data is captured and shifted through sharedcapture/shift memories, without having to use an output hold memory.

The boundary scan cell of the present invention requires very lowoverhead when used on 2-state and 3-state type IC output pins.

It is also desirable to: reduce circuitry overhead associated withconventional FIM and FOM structures; eliminate the need for high-drivebuffers between FIMs and FCL; provide a FOM structure capable ofresolving voltage contention at the output pin; reduce signal pathdelays associated with conventional FIM and FOM structures; and reducesignal path delays associated with conventional combinations of FIM/FOMstructures and boundary scan cells. To this end, the present inventionrealizes the FIM function by combining the input buffer with a feedbackcircuit and a switch, and realizes the FOM function by combining theoutput buffer with a feedback circuit and a switch. The invention alsorealizes the FIM and FOM functions using switches and bus holdercircuits. The invention also combines boundary scan structures with theaforementioned FIM and FOM functions to provide boundary scan operationwithout speed penalty to functional operation.

BRIEF DESCRIPTION OF THE DRAWINGS

FIGS. 1 and 2 illustrate exemplary IC functional architectures to whichthe present invention is applicable.

FIGS. 3-6 illustrate prior art boundary scan designs.

FIG. 7 illustrates an exemplary boundary scan design according to thepresent invention, for use with a 2-state output.

FIG. 8 illustrates an exemplary boundary scan design according to thepresent invention, for use with a 3-state output.

FIG. 9 illustrates another exemplary boundary scan design according tothe present invention, for use with a 2-state output.

FIG. 10 illustrates another exemplary boundary scan design according tothe present invention, for use with a 3-state output.

FIG. 11 is similar to FIGS. 1 and 2 but also includes an exemplaryinput/output pin architecture.

FIGS. 12-12D illustrate various exemplary embodiments of memory designsaccording to the present invention for use with input, 2-state output,3-state output and input/output pins.

FIG. 12E illustrates the bus holder circuit of FIG. 12.

FIGS. 13-13D illustrate exemplary memory designs according to thepresent invention for use with a 2-state output pin in a userprogrammable device.

FIG. 14 illustrates an exemplary data processing device according to thepresent invention.

FIG. 15 illustrates an exemplary data processing system according to thepresent invention.

FIGS. 16-16D illustrate various exemplary embodiments of memory designsaccording to the present invention for use with input and 2-state outputpins, and also connected to provide output latching for input and outputboundary scan cells.

FIGS. 17-17D provide exemplary illustrations of how the features ofFIGS. 16-16D can be applied to input/output pins.

DETAILED DESCRIPTION OF THE INVENTION

In FIG. 7, an IC is shown sharing FIMs and FOMs with IBC and OBC Mem1'sas described in FIG. 5. The IBC implementations of FIGS. 5 and 7 are thesame. In the OBC implementation of FIG. 7, the Mem1 function is sharedwith the FOM 17, the Mux1 function remains as required test logic, andthe Mem2 and Mux2 functions (M&M) are eliminated. The elimination ofMux2 and Mem2 is made possible by a novel latchable output buffer (LOB)design shown at 51 in FIG. 7. The LOB is connected to the output of theshared FOM (at D), the output pin (at E), and TP (at F) of FIG. 7.

A circuit example of the LOB 51 is shown in FIG. 7A. The LOB includes aswitch (S), an output buffer (OB), and an input buffer (IB). The switchhas an input terminal (1) for connection to the IC functional circuitry(at D), an output terminal (2) for connection to the input of the OB,and a control terminal (3) for connection to the TP (at F). The OB hasan input connected to the output terminal (2) and an output connected tothe IC pin (at E). The IB has an input connected to the output of the OB(at E) and an output connected to the input of the OB. During normal ICoperation, the switch S is closed by control input at 3 from TP andfunctional data from the FOM 17 is output from the IC pin via the OB.The IB of LOB 51 is a weak buffer so that, while the switch S is closed,the output from IB is overdriven by the data from the FOM, making the IBtransparent to the operation of the LOB during normal IC operation Soduring normal operation the 2-state output of FIG. 7 operates as the2-state output of the IC in FIG. 1.

During Extest, the switch S is operated by TP to open and close asrequired during testing. When the switch is opened, the IB providesfeedback to the input of the OB to latch the test data currently beingoutput from OB. When the switch is closed, test data from the FOMoverdrives the IB and is output from the OB. Some switch circuitexamples that could be used as switch S in the LOB are shown in FIGS. 7Band 7C, i.e. the transmission gate and 3-state buffer.

In FIG. 8, an IC is shown sharing FIMs and FOMs with IBC and OBC Mem1'sas described in FIG. 6. The IBC implementations of FIGS. 6 and 8 are thesame. In the OBC implementations of FIG. 8, the Mem1 functions areshared with the FOMs 17 and 27, the Mux1 functions remain as requiredtest logic, and the Mem2 and Mux2 functions (M&M) are eliminated. Theelimination of Mux2 and Mem2 in the data path is made possible by anovel 3-state latchable output buffer (3SLOB) design shown at 53 in FIG.8. The elimination of Mux2 and Mem2 in the control path is made possibleby a novel latchable control buffer (LCB) design shown at 55 in FIG. 8.The 3SLOB is connected to the output of the shared data path FOM 17 (atD), the output pin (at E), TP (at F), and a control output of the LCB(at G). The LCB is connected to the output of the shared control pathFOM 27 (at D), the control input G of the 3SLOB (at E), and TP (at F).

A circuit example of the 3SLOB 53 is shown in FIG. 8A. The 3SLOBincludes a switch (S), a 3-state output buffer (3SOB), and an inputbuffer (IB). The structure and operation of the 3SLOB is similar to thepreviously described LOB of FIG. 7. The dfference between the LOB and3SLOB is that the 3SLOB contains a 3SOB and a control input (G) toenable or disable the drive of the 3SOB.

A circuit example of the LCB 55 is shown in FIG. 8B. The LCB includes aswitch (S), an output buffer (OB), and an input buffer (IB). Thestructure and operation of the LCB is similar to the previouslydescribed LOB of FIG. 7. The difference between the LOB and LCB is thatthe LCB uses smaller functional buffers for OB and IB, whereas the LOBuses larger buffers to drive the IC output pins. For example, the IBfunction of the LCB could be realized by a simple pass transistor ortransmission gate instead of an actual buffer.

During normal IC operation in FIG. 8, the switches of the 3SLOB and LCBare closed by control input from TP, and functional data and controlfrom the FOMs define the state of the IC's 3-state output pin. While theswitches of 3SLOB and LCB are closed, the outputs from the IBs of 3SLOBand LCB are designed to be overdriven by the data from FOM 17 andcontrol from FOM 27, respectively, making the IBs transparent to theoperation of the 3SLOB and LCB during normal IC operation. So duringnormal operation the 3-state output of FIG. 8 operates as the 3-stateoutput of FIG. 2.

During Extest, the switches of LCB and 3SLOB are operated by TP to openand close as required during testing. When the switch of the LCB isopened, the IB provides feedback to the input of the OB to latch thetest data (3-state control) currently being output from the OB to the3SLOB. When the switch of the LCB is closed, test data from the controlFOM 27 overdrives the IB and is output from the OB to the 3SLOB. Whenthe switch of the 3SLOB is opened, the IB provides feedback to the inputof the 3SOB to latch the test data currently being output from the 3SOBto the 3-state output pin. When the switch of the 3SLOB is closed, testdata from the data FOM 17 overdrives the IB and is output from the 3SOBto the 3-state output pin.

Note that if the control input to the 3SLOB from the LCB disables the3SLOB's 3SOB, the 3-state output pin drive will be disabled. When the3-state output pin is disabled, the IB of the 3SLOB will input to the3SOB, but the 3SOB cannot drive out what is being input. For example, ifthe 3-state output pin of FIGS. 8-8A is disabled, and a connected3-state output pin is enabled, then the IB of FIG. 8A will input to 3SOBthe data driven from the enabled pin but the 3SOB of FIG. 8A cannotoutput the data.

The LOB, LCB and 3SLOB of FIGS. 7A, 8B and 8A could be implemented withan IB that is enabled to drive the OB/3SOB input when the switch isopened by TP input (at F), and disabled from driving the OB/3SOB inputwhen the switch is closed by TP input (at F). However, regardless of theimplementation style, the function of the IB is to provide feedback tothe OB/3SOB to maintain a logic state at the output pin when the switchis opened. It is also important to note that the LOB, LOB and 3SOBeliminate the Mux2 delay and signal loading by Mux2 and Mem2 seen in theOBCs of FIGS. 5 and 6, which results in improved IC performance.

One problem mentioned previously with the prior art boundary scandesigns of FIGS. 5 and 6 was that sharing functional memories for Mem1prevents scanning Mem1 to preload Mem2 with safe test data prior toentering Extest. Note that the output boundary cells of the boundaryscan designs in FIGS. 7 and 8 don't have a Mem2 or Mux2. The Mem2 andMux2 cell functions are realized by the LOB of FIG. 7 and by the 3SLOBand LCB of FIG. 8 the instant the IC switches from normal operation toExtest mode. During normal operation, LOB, 3SLOB and LCB are driven bythe IC's functional core logic to output functional data. The functionaldata output during normal mode is safe to output when the IC is switchedinto Extest mode. Therefore the LOB, 3SLOB and LCB of FIGS. 7 and 8 alllatch and hold their last functional data value when they receivecontrol from TP to switch from functional operation into Extest.

To place the IC in Extest, TP outputs control to open the switch of LOB(FIG. 7), or the switches of 3SLOB and LCB (FIG. 8). When the switchopens, the input drive from the associated FOM is disabled and thepresent functional state of the output pin is maintained by the feedbackprovided by the IB. For example, in FIG. 7, if the LOB was outputting alogic level to the 2-state output pin in functional mode when TP opensthe LOB's switch to enter Extest, the logic level being output from theLOB's OB is fed back to the input of the OB and latched, via the IB.Thus the LOB provides a way to latch the last functional logic levelstate being driven out of a 2-state output when Extest is entered. InFIG. 8, if the 3SLOB and LCB were outputting data and control for the3-state output in functional mode when TP opens their switches to enterExtest, the data and control being output respectively from the 3SLOB's3SOB and the LCB's OB are fed back to the inputs of the 3SOB and OB,respectively, and latched, via the IBs. Thus the 3SLOB and LCB provide away to latch the last functional logic condition being driven out of a3-state output when Extest is entered.

The above-described feature of maintainig the last functional outputstate when an IC transitions from functional mode to Extest modeprovides a safer method of Extest entry than that offered by the OBCs ofFIGS. 5 and 6. Furthermore, if during entry into Extest an output bufferwas placed in contention with another output buffer, or shorted toground or supply voltages, the voltage contention would be quicklyresolved by the feedback mechanism built into the LOB and 3SLOB. Forexample, if a short to ground existed on an output pin and thefunctional logic of the IC was attempting to output a logic one throughan LOB when Extest was entered, the LOB's switch would open and thefeedback provided by IB would cause OB to output a logic zero, endingthe voltage contention at the 2-state output pin.

After Extest is entered and safe outputs have been established at ICoutputs, the TP can scan Mem1 to perform the 1149.1 capture, shift andupdate operations as described in FIGS. 3 and 4. Note that the 3SLOB,LCB and LOB, in addition to establishing safe test output conditionsupon Extest entry, also provide the Mem2 function of maintaining stabletest data to output pins while Mem1 captures and shifts data duringExtest. This is accomplished by TP opening the switches of the 3SLOB,LCB and LOB during capture and shift operations. The switches of 3SLOB,LCB and LOB are then momentarily closed at the end of the capture andshift operations to permit new test data to be updated from Mem1 to theIC output via 3SOB and OB of 3SLOB and LOB. Although it is preferred toclose the switches only momentarily at the end of the capture/shiftoperations, the switches can, if desired, remain closed untilimmediately before the next capture/shift operation, but theabove-described resolution of voltage contention will not occur unlessthe switch is open.

In FIGS. 9 and 10, LOB1, 3SLOB1 and LCB1 are similar to theabove-described LOB, 3SLOB and LCB, but are designed to allow Mem1 tocapture the test data output from each by adding a signal output (H)from the IBs. The signal output H is shown in the LOB1, 3SLOB1 and LCB1of FIGS. 9A, 10A and 10B, respectively. The signal output (H) isconnected to an additional input to Mux1 of each associated Mem1. Thisallows Mem1 to selectively capture either system data from thefunctional core logic (using the pre-existing mux input) or the testdata output H from the LOB1, 3SLOB1 and LCB1 (using the added muxinput). The selectivity control to determine what is captured comes fromTP. The ability to capture the output of the LOB1, 3SLOB1 and LCB1allows testing to see if a 2-state or 3-state pin output is actuallydriving out the logic level expected. For example, if the LOB1 in FIG. 9is updated with a logic one and the 2-state output pin is shorted toground, the feedback in LOB1 will cause the output to go to and latch ata logic zero when switch S opens. During the next capture and shiftoperation (assuming Mux1 is set to load signal H from the LOB1 intoMem1), the logic zero condition of the 2-state output will be seen to bedifferent from the expected logic one that was previously updated,making the short to ground condition on the 2-state pin detectable. Asimilar output condition detection test is possible on 3-state outputpins by being able to capture and shift out for inspection the data andcontrol outputs from 3SOB1 and LCB1. Another advantage of allowing theoutput of LOB1, 3SLOB1 and LCB1 to be captured into Mem1 is that whenthe IC is initially switched from functional operation into Extest, acapture and shift operation of Mem1 allows the initial test conditionsat 2-state and 3-state output pins to be observed.

As described above, the present invention provides: a selfinitializingand self-correcting boundary scan cell for the data path of 2-stateoutput pins; a self initializing and self-correcting boundary scan cellfor the data path of 3-state output pins; a self initializing boundaryscan cell for the control path of 3-state output pins; 2-state and3-state output boundary scan cells with ripple free outputs duringcapture and shift operations without requiring use of an output holdmemory; 2-state and 3-state output boundary scan cells with Mux2 andMem2 test functions that are transparent while IC is in normalfunctioning mode; and an output boundary scan design with reduced signaldelay for 2-state and 3-state output buffers

In the prior art 1149.1 boundary scan design of FIG. 3 it is seen thateach 2-state IC output pin requires dedicated test logic for realizing;Mux1, Mem1, Mem2 and Mux2. In the prior art 1149.1 boundary scan designof FIG. 4 it is seen that each 3-state IC output pin, that has its own3-state control, requires dedicated test logic for realizing; two Mux1s,two Mem1s, two Mem2s, and two Mux2s. In the prior art shared boundaryscan design of FIG. 5 it is seen that each 2-state IC output pinrequires dedicated test logic for realizing; Mux1, Mem2 and Mux2. In theprior art shared boundary scan design of FIG. 6 it is seen that each3-state IC output, that has its own 3-state control, requires dedicatedtest logic for realizing; two Mux1s, two Mem2s and two Mux2s. In theshared boundary scan design of the present invention in FIGS. 7 and 9 itis seen that each 2-state IC output pin requires dedicated test logicfor realizing Mux1. In the shared boundary scan design of the presentinvention in FIGS. 8 and 10 it is seen that each 3-state IC output, thathas it own 3-state control, requires dedicated test logic for realizingtwo Mux1s and an LCB/LCB1. It is important to note that while theLOB/LOB1 and 3SLOB/3SLOB1 include additional circuitry (i.e. the IB andS) not included in the prior art, this additional circuitry isadvantageously implemented in the buffer pad region of the IC, andtherefore does not consume circuitry in the area of the IC function corelogic. The present invention thus provides an output buffer design withthe equivalent of prior art Mux2 and Mem2 functions implementedtransparently within the output buffer pad region.

In exemplary FIG. 12, a FOM 121 of the output pin is implemented usingthe latchable output buffer (LOB) structure of FIGS. 7A-7C, a FIM 123 ofthe input pin is implemented using a latchable input buffer (LIB)structure analogous to the LOB of FIGS. 7A-7C but utilzing the inputbuffer 11 of the input pin in combination with a weak feedback buffer, acontrol FOM 125 of the I/O pin is implemented using a bus holder BH anda switch S of the type shown in FIGS. 7B-7C, an output FOM 127 of theI/O pin is implemented using the 3SLOB structure of FIG. 8A, and a FIM123 of the I/O pin is implemented using LIB.

An exemplary bus holder circuit including two cross-coupled internal ICbuffers is shown in FIG. 12E.

During functional output operations, the switches S in the control path25 and in the output paths receive UC (update control) signals from theFCL via control output 23. The UC signals cause the associated switchesS to close, which allows the FCL control and output signals to passthrough switches S to be input to the LOB and 3SLOB (output signals) andto BH (3-state control signal). Thereafter, the UC signals open theswitches S, and the data in the LOB, 3SLOB and BH are maintained. The3-state control signal at BH is output to the 3SLOB's 3SOB when theassociated switch S is first closed and continues to be output to the3SOB after S is opened. The output signal at the LOB of the output pinis output from the IC when the associated switch S is first closed andcontinues to be output from the IC after S opens. The output signal at3SLOB of the I/O pin is output from the IC, if the 3SOB is enabled bythe control signal from the BH, when the associated switch S is firstclosed and continues to be output from the IC after S opens. If theoutput pin or I/O pin is shorted to or functionally driven by a morepowerful opposite voltage level, the LOB/3SLOB will attempt to overdrivethe opposing level when S is closed by UC, but will give up to andchange state to the opposing level when S is opened by UC. The UCsignals can operate together or individually to provide the desiredoperation.

During functional input operations, the switches S in the input pathsreceive UC signals from the FCL. The UC signals cause the switches S toclose, which allows the input signals to pass through switches S to beinput to the LIB. Thereafter, the UC signals open the switches S, andthe data in the LIB is maintained. The input signal at each LIB is inputto the FCL when the associated switch S is first closed and continues tobe input to the FCL after S opens.

In FIG. 12A, the connections between control bus 23 and the respectivefeedback buffers of the LOB/3SLOB/LIB indicate that these feedbackbuffers may also be implemented as 3-state buffers (or as transmissiongates as shown in FIG. 7B) which are enabled (by UC or a separatesignal) when the associated switch S is opened, and are disabled (by UCor a separate signal) when associated switch S is closed. This permitsthe pins of the IC to be selectively operated as latched pins or asnormal non-latched pins , the latter operation being achieved bymaintaining the switches S closed and the feedback buffers disabled. Ifa weak 2-state feedback buffer is used in LOB/3SLOB/LIB (FIG. 12), thenthe aforementioned non-latched operation is achieved by simplymaintaining the associated switch S closed so the FCL 15 can overdrivethe weak 2-state feedback buffer.

The FIMs 123 and FOMs 121 and 127 of FIG. 12 and the FIMs 123A and FOMs121A and 127A of FIG. 12A use the IC's input buffer (in FIMs) and outputbuffer (in FOMs), thus reducing the amount of circuitry overhead ascompared to prior art FIMs and FOMs. The bus holder and switchcombination of FOM 125 also uses less circuitry overhead than prior artFOMs.

The signal delay introduced by each FIM and FOM circuit in FIG. 12 isonly the delay through S, which is less than in typical prior artFIM/FOMs.

Although the prior art FOMs of FIG. 11 continuously drive the outputbuffers with latched data even if the output buffers are shorted to anopposing voltage level, the LOB/3SLOB of FIGS. 12 and 12A gives up itsdrive against opposing voltage levels and changes state to the opposingvoltage level after S is opened. Thus better protection of outputbuffers is provided in FIGS. 12 and 12A. Moreover, when switch S of FOM121 (121A) is open, an external device (such as another IC) connected tothe output pin of FIG. 12 (12A) could use the memory provided by the LOBof FOM 121 (121A) to store data. This is not possible at the output pinof prior art FIG. 11.

It should be noted in FIGS. 12 and 12A that the IC's input buffers 11drive the FCL 15 directly, thus eliminating any need for theaforementioned high-drive buffers that are often required with prior artFIMs.

FIG. 13 illustrates another exemplary FOM 131 at a 2-state output pin.The FOM 131 includes a latchable output buffer (LOB2) comprising a3-state output buffer wired to be a 2-state output buffer, an inputbuffer 11 that is not connected to drive FCL 15, and a feedback element(FE). This type of implementation may be done on user programmabledevices where all pins are designated as I/O types and therefore areprovided with an IC input buffer and an IC output buffer as shown inFIG. 13. If it is determined that the pin will operate only as a 2-stateoutput pin, then the unused input buffer 11 can be used as part of theLOB2 as shown. The FE provides feedback to the input of the outputbuffer from the otherwise unused input buffer. Examples of FE's areshown in FIGS. 13A-13C. As shown, FE can be designed using atransmission gate, a 3-state buffer, or a weak 2-state buffer.

FIG. 13D illustrates another exemplary FOM 131D which is similar to FOM131. The connection in FIG. 13D between the control bus 23 and FE showsthat FE (in the case where FE is a transmission gate or 3-state buffer)can be controlled by UC or a separate signal so that FE is enabled whenS is opened, and is disabled when S is closed. This permits the outputpin of FIG. 13D to be selectively operated as a latched or non-latchedpin, in the same manner described above relative to FIG. 12A. If a weak2-state buffer is used for FE (FIGS. 13 and 13C), then S is simplymaintained closed to permit FCL to overdrive the weak 2-state buffer andprovide a non-latched output pin.

Another advantage of using FE and the input buffer 11 to realize LOB2 isthat FE is on the FCL side of 3SOB 21 and IB 11 and thus does notadversely affect pin loading (capacitance) or circuitry associated withthe pin such as electrostatic discharge (ESD) protection circuitry andvoltage level shifting circuitry. In fact, the pin's buffer circuitryneed not be modified, but simply connected as shown.

FIG. 14 illustrates an example IC 141 that uses the LIBs and LOBs asfunctional memories on 2-state output (2SO), 3-state output (3SO), input(IN), and input/output (I/O) pins. The blocks designated 2SO, 3SO, INand I/O can include the corresponding FOMs and FIMs from, for example,FIG. 12. The IC 141 is a data processing device comprising processors 1and 2, memory, cache, and a floating point unit (FPU). During operationthe processors communicate with each other using an internal data bus(DB) and an internal control bus (CB). The processors also communicateto the internal memory, cache, and FPU using the DB and CB. Theprocessors also communicate to external devices using DB, CB and theFOMs and FIMs in the 2SO, 3SO, IN and I/O blocks. The CB carries UCsignals required to store data in the FOMs and FIMs as shown in FIG. 12,and DB carries the data.

One of the advantages of memoried pins is that the processor device 141is free to use the internal DB and CB for internal communication whilethe pin data is latched. In one example, processor 1 may store outputdata in memoried output pins using the DB and CB, and then, while pindata is stored and output, use the DB and CB to internally communicatewith another circuit in the IC. In another example, processor 2 may needto transmit a large number of data words to another device. Using thememoried pins, processor 2 could store at memoried output pins a firstdata word to be transferred, and then, while the first data word isstored, go fetch the next data word to be transferred, and so on untilthe last data word is transferred. Without memoried pins, processor 2would have to hold the data word at the pins using the DB until the wordis accepted by the receiving device, then go fetch the next data word.

In another example, processor 1 may be performing an internalcommunication using the DB and CB when an input occurs at an input pin.The FIMs could receive a free running, periodic UC signal from CB tostore the data input so that it is available to processor 1 after theexternal input goes away. Processor 1, after completing its internalcommunication, receives the stored input and responds to it. In stillanother example, processor 2 may store at an output pin(s) data whichinforms external devices that IC 141 will be unavailable for externalcommunication. While the output pin data is stored, IC 141 may performextended internal communication. When internal communication iscomplete, processor 2 indicates that the IC is again ready for externalcommunication by storing data at the output pin(s) to indicate such. Ingeneral, memoried pins provide input and output signal storage thatpermits inputting/outputting pin data without interfering with the IC'sinternal operations.

Another advantage of an architecture with memoried pins is that itprovides high speed synchronized communication between ICs. For example,a system could comprise multiple ICs, each IC having memoried pins andeach memoried pin being driven by a clock (or UC) common to all memoriedpins in the system. This would allow communication between the ICs tooccur in a synchronous manner. The data arriving and departing from thememoried pins of each IC is provided storage within the memoried pins.This pin storage allows the internal circuitry of each IC, whichtypically operates much faster than external communication, time toreceive data, process the data, and output data in step with theexternal synchronous communication flow.

Exemplary FIG. 15 illustrates a computer system example comprising ICshaving memoried pins. The computer system 151 comprises interconnectedcomponents including a microprocessor, disk drive, memory, cache, modem,monitor, keyboard, and I/O. The use of memoried pins on the ICs in thevarious components of the computer system can improve its performancevia, for example, the above-described pipelining of pin data transferduring external communication between ICs in the system.

In exemplary FIG. 16 an IC 161 includes FIM 123 and FOM 121 used asfunctional pin memories and also connected to provide output latchingfor input and output boundary scan cells (BSCs). In normal operation,the FIM and FOM provide functional pin memories as in FIG. 12. Circuitryrequired for functional IC operation is shaded in FIG. 16. The BSCcircuitry is non-shaded to indicate test use only. During normaloperation of the IC, the S2 switches (which may be the same as switch S)are opened by a test update (TU) signal from control bus 33 (FIG. 3) andthe S switches are operated (opened/closed) by a functional update (FU)signal from FCL output 23 (FIG. 12) to store functional data in the FIMand FOM. During test operation of the IC, the S switches are opened byFU and the S2 switches are operated by TU to store test data from Mem1at the outputs of IB 11 and 2SOB 19.

The boundary scan circuitry (dedicated test circuitry shown non-shaded)in FIG. 16 consists of only Mux1, Mem1, and S2 for both input and outputpin. Comparing the signal paths between FCL and the pins of FIG. 16 tothe corresponding signal paths in FIG. 12, it is clear that the boundaryscan implementation of FIG. 16 adds no delay to the input or outputsignal path. Thus, boundary scan operation is achieved with no speedpenalty to the functional signal paths. The boundary scanimplementations of FIGS. 3-10 disadvantageously introduce delays intothe input and output signal paths of FIGS. 1-2. Switches S2 in FIG. 16permit the scan path from SI to SO to be isolated from FIM 123 and FOM121, thus permitting scan operations to be performed whenever desiredduring functional or test operation of IC 161.

The ENA1 input to the feedback buffers of FOM 121A and FIM 123A in FIG.16A indicates that the feedback buffers may be implemented as 3-statebuffers as in FIGS. 12A and 13D. The ENA1 signal may be a logical OR ofthe FU and TU signals, or may be a separate signal.

In FIG. 17, an exemplary input/output pin is shown using functionallyrequired (shaded) FIM 123 and FOMs 127 and 125 as in FIG. 12. Theboundary scan circuitry is shown non-shaded and consists of only S2,Mux1 and Mem1 for each signal path (control, output, input). Again, asin FIG. 16 switches S2 can isolate the scan path from the FIMs and FOMs,and the circuitry for boundary scan adds no delay to the correspondingsignal paths of FIG. 12. A boundary scan example for a 3-state outputpin is clearly seen in FIG. 17 by eliminating the input signal path frompin to FCL, and the associated BSC.

The ENA1 signal in FIG. 17A is the same as discussed above relative toFIG. 16A.

The broken line connections shown in FIGS. 16-17 provide feedback pathsthat permit data previously latched into the FIM/FOM structures to becaptured into the Mem1s and shifted out through the scan path forevaluation. This permits, for example, the BSCs to perform self-testing.

In some systems it may be desirable to provide a memoried pin capabilitythat is highly resistant to electrical noise produced by the system orby the environment in which the system resides. Such noise can beproduced from large systems operating at high speeds, inadequate powersupply capacity, filtering, or isolation, or poorly terminated signaltransmission lines. Electrical noise can occur internal to the IC orexternal to the IC. While providing hysteresis and/or other known noiseimmunity circuitry on the feedback buffers of FIGS. 12 and 12A canprotect against inadvertent pin state changes in normal systemenvironments, severely noisy system environments might possibly cause apin state change to occur due to the use of feedback buffers.

In FIG. 12B an alternate memoried pin implementation example is shown.FOM 121B, FOM 127B, and FIMs 123B in FIG. 12B are realized by placing aBH between S and the input or output buffer. On IC outputs, the FCLoutputs UC to momentarily dose S. When S is closed, the data value fromthe FCL drives the output pin via the output buffer, and when S isopened the driven output data value is maintained by operation of theBH. On IC inputs, the FCL outputs UC to momentarily close S. When S isclosed, the data value from the input pin drives the FCL via the inputbuffer, and when S is opened the driven input data value is maintainedby the BH. Since only the BH is used to maintain data, no feedbackexists between output and input of the pin buffers 11, 19 and 21, so thedata driven by the pin buffers is tolerant to high levels of internal orexternal noise present on the output of the pin buffers.

Exemplary FIG. 12C shows FOMs 121C and 127C using both the BH (FIG. 12B)and 3-state feedback buffer (FIG. 12A) memory techniques on IC outputpins. The BH and 3-state feedback buffer provide two distinct modes ofIC output pin memory operation. One mode is referred to as developmentmode and the other is referred to as mission mode. The development modeis where the system hardware and software are being integrated togetherand tasks like software code debug, system emulation and testing takeplace. During development mode, system resident ICs may be at risk ofoutput buffer damage due to assembly faults (e.g. short pins), orhardware/software design errors that can cause IC pins to be placed incontention with one another. Therefore during development mode, it isbeneficial to provide output buffers with the safe operation modeprovided by the 3-state feedback buffer. With the 3-state feedbackbuffer enabled (by signal ENA), the state of the BH can be overdriven bythe feedback buffer (which must be strong enough to overdrive BH) toeliminate contention at the output pins. That is, the IC of FIG. 12Coperates generally the same as the IC of FIG. 12A. Thus output pincontention situations are resolved in a safe way that avoids damage toor destruction of expensive ICs and/or circuit boards during thedevelopment mode.

After the development mode is completed and the system is stable andoperates as expected, the IC can be placed in its mission mode. Inmission mode, the feedback buffer can be disabled (by ENA) to preventthe possibility of pin memory state change in response to severely noisysystem environments, whereby the IC of FIG. 12C operates as described inregard to the IC of FIG. 12B. FIG. 12D shows an example multiplexingcircuit 120 that selectively causes the IC of FIG. 12C to operate ineither the development or mission mode. In development mode, themultiplexer couples the FIG. 12A control, previously described, to ENAto enable the feedback buffer and provide the safe output bufferoperation of FIG. 12A. In mission mode, the multiplexer couples ground(GND) to ENA to disable the feedback buffer and provide the high noiseimmunity operation of the memoried pins described previously in regardto FIG. 12B. Of course, either development or mission mode can beselected as desired at any stage of the system's life, from initialdevelopment to actual deployment. The mode signal, input to themultiplexer for selecting development or mission modes, can come from anIC pin or a register within the IC.

Exemplary FIG. 16B is similar to FIGS. 16 and 16A, but the FOM 121B andFIM 123B use bus holders BH instead of the feedback buffers used in theFOMs and FIMs of FIGS. 16 and 16A. The advantage of using BH's formemoried pins was described in regard to FIG. 12B.

Exemplary FIG. 16C is similar to FIGS. 16-16B but illustrates the use ofboth BH (FIG. 16B) and a 3-state feedback buffer (FIG. 16A) in FOM 121C,similarly to FIG. 12C. During boundary scan testing the FOM 121C can becontrolled by signal ENA2 to enable the feedback buffer and therebyallow the safe boundary scan test previously described in regard to FIG.16. As shown in FIG. 16D, a multiplexer circuit 120 can selectivelyconnect ENA2 to ENA1 (FIG. 16A) or GND, depending on whether development(ENA1) or mission (GND) mode is selected. When enabled by ENA2, thefeedback buffer can overdrive the state of the BH to eliminate outputbuffer contention. Exemplary benefits of the example in FIG. 16C are;(1) the high pin memory noise immunity of FIG. 16B, (2) the selectivitybetween development and mission modes similar to FIG. 12C, and (3) thesafe, shared resource boundary scan testing of FIG. 16. Of course,either mission or development mode maybe selected for boundary scantesting, which testing may be done at any stage of the IC's life, forexample, during IC production or system development, or after the IC hasbeen deployed as part of a system in the actual system environment.

Exemplary FIGS. 17B-17D illustrate the techniques of FIGS. 12B-12D and16B-16D as applied to an I/O pin architecture of the type shown in FIGS.17 and 17A.

Although exemplary embodiments ofthe present invention are describedabove, this description does not limit the scope of the invention, whichcan be practiced in a variety of embodiments.

What is claimed is:
 1. An integrated circuit comprising:A. asemiconductor substrate; B. functional circuitry formed on the substratefor performing normal operating functions of the integrated circuit; C.an output terminal formed on the substrate, coupled to the functionalcircuitry; D. a test data path formed on the substrate and providingtest data; E. memory circuitry formed on the substrate and storing datatherein, the memory circuitry having an input selectively connectable tothe functional circuitry and to the test data path and having an output;F. test control circuitry formed on the substrate and selectivelyconnecting the memory circuitry input to the functional circuitry and tothe test data path; and G. latching output buffer circuitry formed onthe substrate and connected between the memory circuitry output and theoutput terminal, the buffer circuitry including a switch and an outputbuffer connected in series between the memory circuitry and outputterminal and including an input buffer connected in parallel with theoutput buffer, the input buffer being electrically weaker than theoutput buffer, the output buffer and input buffer forming a latchcircuit.
 2. The integrated circuit of claim 1 in which the switch is atransmission gate.
 3. The integrated circuit of claim 1 in which theswitch is a 3-state buffer switch.
 4. The integrated circuit of claim 1in which the output buffer is a three-state output buffer.
 5. Theintegrated circuit of claim 1 in which the test control circuitryselectively connects the memory circuitry input to the connectionbetween the switch and output buffer.
 6. The integrated circuit of claim1 including:A. second memory circuitry formed on the substrate andstoring data therein, the memory circuitry having an input selectivelyconnectable to the functional circuitry and to the test data path andhaving an output; B. second test control circuitry formed on thesubstrate and selectively connecting the second memory circuitry inputto the functional circuitry and to the test data path; and C. latchingcontrol buffer circuitry formed on the substrate and connected betweenthe second memory circuitry output and the latching output buffercircuitry, the latching control buffer circuitry including a secondswitch and a second output buffer connected in series between the secondmemory circuitry and latching output buffer circuitry and including asecond input buffer connected in parallel with the second output buffer,the second input buffer being electrically weaker than the second outputbuffer, the second output buffer and second input buffer forming asecond latch circuit.
 7. The integrated circuit of claim 1 in which theoutput terminal is accessible externally of the integrated circuit.